/**
 * jims
 */
package com.jims.master.modules.finance.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.common.web.impl.BaseDto;
import com.jims.master.modules.finance.entity.InpAcctMaster;
import com.jims.master.modules.finance.entity.InpSettleMaster;
import com.jims.master.modules.finance.entity.PatPrepayment;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


/**
 * 结算主记录DAO接口
 * @author 赵宁
 * @version 2017-03-29
 */
@MyBatisDao
public interface InpSettleMasterDao extends CrudDao<InpSettleMaster> {
    /**
     * 确认结算
     * @param map
     * @author 赵宁
     */
    public void confirmSettle(Map<String ,Object> map);

    /**
     * 更新结账号
     * @param inpAcctMaster
     * @author 赵宁
     */
    public void updateSettle(InpAcctMaster inpAcctMaster);

    /**
     * 根据收据号查询 结算主记录
     * @param rcptNo
     * @param orgId
     * @return
     * @author 赵宁
     */
    public InpSettleMaster getMasterByRcpt(@Param("rcptNo")String rcptNo,@Param("orgId")String orgId);

    /**
     * 查询结算主记录
     * @param rcptNo
     * @param orgId
     * @return
     * @author 赵宁
     */
    public InpSettleMaster getMaster(@Param("rcptNo")String rcptNo,@Param("orgId")String orgId);

    /**
     * 取消结算
     * @param map
     * @author 赵宁
     */
    public void cancelSettle(Map<String ,Object> map);

    /**
     * 出院结算计算优惠价格
     * @param map
     * @author 赵宁
     */
    public void outPreferCalcul(Map<String ,Object> map);

    /**
     * 住院结账打印
     * @param inpAcctMaster
     * @return
     * @author 赵宁
     */
    public BaseDto printInpAcct(InpAcctMaster inpAcctMaster);

    /**
     * 医保住院数据传输查询
     * @return
     */
    public List<InpSettleMaster> findPageMedicalInsurance(InpSettleMaster inpSettleMaster);

}